package com.tangyuan.userauth.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.tangyuan.model.UserLikeCategory;
import com.tangyuan.userauth.mapper.UserLikeCategoryMapper;
import com.tangyuan.userauth.service.IUserLikeCategoryService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserLikeCateGoryService extends ServiceImpl<UserLikeCategoryMapper, UserLikeCategory> implements IUserLikeCategoryService {
    @Autowired
    private UserLikeCategoryMapper userLikeCategoryMapper;
    @Override
    public List<UserLikeCategory> getUserLikeCateGory() {
        LambdaQueryWrapper<UserLikeCategory> lambdaQueryWrapper = new LambdaQueryWrapper<>();
        lambdaQueryWrapper.eq(UserLikeCategory::getIsDeleted,0);
        List<UserLikeCategory> userLikeCategoryList = userLikeCategoryMapper.selectList(lambdaQueryWrapper);
        return userLikeCategoryList;
    }
}
